﻿namespace Dyao.Book.Application
{
    public interface ITaskRuleExcutor
    {
        /// <summary>
        /// 规则Key
        /// </summary>
        string Key { get; }

        /// <summary>
        /// 执行任务规则
        /// </summary>
        /// <param name="context">context</param>
        Task ExcuteAsync(TaskCenterRuleExcutingContext context);
    }

    public interface ITaskRuleExcutor<TSettings>
    {
        TSettings Settings { get; }
    }

    public interface ITaskRuleSettingsLoader
    {
        void LoadSettings(string settingsStr);
    }
}
